home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 23 / develop issue 23 code / projectdrag 1.1b8.sea / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / ProjectDrag.r / ProjectDrag.r
Encoding:
Text File  |  1995-09-07  |  12.6 KB  |  486 lines  |  [TEXT/MPS ]

  1. /* ProjectDrag.r: Resources used by each applet in ProjectDrag
  2.  * Mutated from DropShell.r.
  3.  *
  4.  * A set of applets for drag and drop source control by Tim Maroney.
  5.  * See develop, issue 23 for details.
  6.  *
  7.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  8.  * and using the MoreFiles utilities by Jim Luther.
  9.  *
  10.  * This software is free, but don't modify and redistribute it without
  11.  * changing the status window to indicate your name and your changes!
  12.  */
  13.  
  14.  
  15. #define SystemSevenOrLater 1
  16. #include "Types.r"
  17. #include "SysTypes.r"
  18. #include "BalloonTypes.r"
  19.  
  20. /* 
  21.     These are the help resources for the menus.
  22. */
  23. resource 'hmnu' (128, purgeable) {    /* Apple */
  24.     HelpMgrVersion, 0, 0, 0,
  25.     HMSkipItem {    /* no missing items */    },
  26.     {    /* array HMenuArray: 2 elements */
  27.         HMSkipItem        {    /* skip the menu title */ },
  28.         HMStringResItem {    /* About Item */
  29.             128, 1,
  30.             128, 1,
  31.             0, 0,
  32.             0, 0
  33.         }
  34.     }
  35. };
  36.  
  37. /* How about the About box? */
  38. resource 'ALRT' (128, purgeable) {
  39.     {75, 79, 198, 354}, 128,
  40.     {    /* array: 4 elements */
  41.         /* [1] */    OK, visible, silent,
  42.         /* [2] */    OK, visible, silent,
  43.         /* [3] */    OK, visible, silent,
  44.         /* [4] */    OK, visible, silent
  45.     },
  46.     alertPositionMainScreen
  47. };
  48.  
  49. /* 
  50.     This is the help resource for the about box.
  51. */
  52. resource 'hdlg' (128, purgeable) {
  53.     HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3,    /* need bits saved in Alert, since the OK ring & icons are not updated */
  54.     HMSkipItem    { /* no missing items */ },
  55.     {
  56.         HMStringResItem {    /* OK button */
  57.             {0,0},        /* default tip */
  58.             {0,0,0,0},    /* alternate rect */
  59.             128, 2,        /* res ID's as normal */
  60.             0, 0,
  61.             0, 0,
  62.             0, 0
  63.         },
  64.         HMStringResItem {    /* StatText */
  65.             {0,0},        /* default tip */
  66.             {0,0,0,0},    /* alternate rect */
  67.             0, 0,        
  68.             128, 3,        /* stat text is disabled! */
  69.             0, 0,
  70.             0, 0
  71.         }
  72.     }
  73. };
  74.  
  75. /* Error Alert Stuff */
  76. resource 'ALRT' (200, purgeable) { /* generic error alert */
  77.     {100, 120, 224, 452}, 200,
  78.     {    /* array: 4 elements */
  79.         /* [1] */    OK, visible, silent,
  80.         /* [2] */    OK, visible, silent,
  81.         /* [3] */    OK, visible, silent,
  82.         /* [4] */    OK, visible, silent
  83.     },
  84.     alertPositionMainScreen
  85. };
  86.  
  87. resource 'DITL' (200, purgeable) {
  88.     {    /* array DITLarray: 4 elements */
  89.         /* [1] */    {92, 246, 112, 318}, Button { enabled, "Whoops!" }, 
  90.         /* [2] */     {11, 73, 75, 318}, StaticText { disabled, "^0" }, 
  91.         /* [3] */     {11, 11, 43, 43}, Icon { disabled, 0 }, 
  92.         /* [4] */     {96, 11, 112, 100}, StaticText { disabled, "Error: ^1" } 
  93.     }
  94. };
  95.  
  96.  
  97. /* 
  98.     This is the help resource for the ErrorAlert above.  
  99. */
  100. resource 'hdlg' (200, purgeable) {
  101.     HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3,    /* need bits saved in Alert, since the OK ring & icons are not updated */
  102.     HMSkipItem    { /* no missing items */ },
  103.     {
  104.         HMStringResItem {    /* OK button */
  105.             {0,0},        /* default tip */
  106.             {0,0,0,0},    /* alternate rect */
  107.             200, 1,        /* res ID's as normal */
  108.             0, 0,
  109.             0, 0,
  110.             0, 0
  111.         },
  112.         HMStringResItem {    /* StatText - error message*/
  113.             {0,0},        /* default tip */
  114.             {0,0,0,0},    /* alternate rect */
  115.             0, 0,        
  116.             200, 2,        /* stat text is disabled! */
  117.             0, 0,
  118.             0, 0
  119.         },
  120.         HMSkipItem        {    /* icon */ },
  121.         HMStringResItem {    /* StatText - error ID*/
  122.             {0,0},        /* default tip */
  123.             {0,0,0,0},    /* alternate rect */
  124.             0, 0,        
  125.             200, 3,        /* stat text is disabled! */
  126.             0, 0,
  127.             0, 0
  128.         },
  129.     }
  130. };
  131.  
  132.  
  133. resource 'ALRT' (202, purgeable) { /* Confirm alert -- yes/no/cancel */
  134.     {100, 120, 254, 452}, 202,
  135.     {    /* array: 4 elements */
  136.         /* [1] */ OK, visible, silent,
  137.         /* [2] */ OK, visible, silent,
  138.         /* [3] */ OK, visible, silent,
  139.         /* [4] */ OK, visible, silent
  140.     },
  141.     alertPositionMainScreen
  142. };
  143.  
  144. resource 'DITL' (202, purgeable) {
  145.     {    /* array DITLarray: 5 elements */
  146.         /* [1] */    {121, 246, 141, 318}, Button { enabled, "Yes" },
  147.         /* [2] */    {121, 11, 141, 83}, Button { enabled, "Cancel" },
  148.         /* [3] */    {11, 73, 75, 318}, StaticText { disabled, "^0" },
  149.         /* [4] */    {11, 11, 43, 43}, Icon { disabled, 0 },
  150.         /* [5] */    {121, 155, 141, 227}, Button { enabled, "No" },
  151.         /* [6] */    {91, 155, 111, 318}, CheckBox { enabled, "Same answer for all…" }
  152.     }
  153. };
  154.  
  155.  
  156. resource 'DLOG' (203) { /* user settings dialog */
  157.     {40, 40, 212, 372}, dBoxProc, invisible, goAway, 0x0, 203, "",
  158.     alertPositionMainScreen
  159. };
  160.  
  161. resource 'DITL' (203, purgeable) {
  162.     {    /* array DITLarray: 8 elements */
  163.         /* [1] */    {143, 247, 163, 319}, Button { enabled, "OK" },
  164.         /* [2] */    {143, 156, 163, 228}, Button { enabled, "Cancel" },
  165.         /* [3] */    {11, 73, 64, 318},StaticText { disabled,
  166.                     "Please enter your user name, and your initials "
  167.                     "or a nickname for change comments." },
  168.         /* [4] */    {11, 9, 43, 41}, Icon { disabled, 0 },
  169.         /* [5] */    {85, 9, 101, 165}, StaticText { disabled, "User Name:" },
  170.         /* [6] */    {112, 9, 128, 165}, StaticText { disabled, "Initials or Nickname:" },
  171.         /* [7] */    {86, 176, 102, 316}, EditText { enabled, "Joe Schmoe" },
  172.         /* [8] */    {112, 176, 128, 316}, EditText { enabled, "js" }
  173.     }
  174. };
  175.  
  176. resource 'DLOG' (204) {    /* Change comment dialog */
  177.     {40, 40, 272, 372}, dBoxProc, invisible, goAway, 0x0, 204, "",
  178.     alertPositionMainScreen
  179. };
  180.  
  181.  
  182. resource 'DITL' (204, purgeable) {
  183.     {    /* array DITLarray: 5 elements */
  184.         /* [1] */    {203, 247, 223, 319}, Button { enabled, "OK" },
  185.         /* [2] */    {203, 156, 223, 228}, Button { enabled, "Cancel" },
  186.         /* [3] */    {11, 73, 64, 318}, StaticText { disabled, "^0" },
  187.         /* [4] */    {11, 9, 43, 41}, Icon { disabled, 0 },
  188.         /* [5] */    {75, 10, 191, 317}, EditText { enabled, "" }
  189.     }
  190. };
  191.  
  192.  
  193. resource 'ALRT' (206, purgeable) { /* Confirm alert -- yes/no */
  194.     {100, 120, 254, 452}, 206,
  195.     {    /* array: 4 elements */
  196.         /* [1] */ OK, visible, silent,
  197.         /* [2] */ OK, visible, silent,
  198.         /* [3] */ OK, visible, silent,
  199.         /* [4] */ OK, visible, silent
  200.     },
  201.     alertPositionMainScreen
  202. };
  203.  
  204. resource 'DITL' (206, purgeable) {
  205.     {    /* array DITLarray: 5 elements */
  206.         /* [1] */    {121, 246, 141, 318}, Button { enabled, "Yes" },
  207.         /* [2] */    {121, 158, 141, 230}, Button { enabled, "No" },
  208.         /* [3] */    {11, 73, 75, 318}, StaticText { disabled, "^0" },
  209.         /* [4] */    {11, 11, 43, 43}, Icon { disabled, 0 },
  210.         /* [5] */    {91, 158, 111, 318}, CheckBox { enabled, "Same answer for all…" }
  211.     }
  212. };
  213.  
  214.  
  215. resource 'ALRT' (207, purgeable) { /* generic error alert */
  216.     {100, 120, 284, 452}, 207,
  217.     {    /* array: 4 elements */
  218.         /* [1] */    OK, visible, silent,
  219.         /* [2] */    OK, visible, silent,
  220.         /* [3] */    OK, visible, silent,
  221.         /* [4] */    OK, visible, silent
  222.     },
  223.     alertPositionMainScreen
  224. };
  225.  
  226. resource 'DITL' (207, purgeable) {
  227.     {    /* array DITLarray: 3 elements */
  228.         /* [1] */    {152, 246, 172, 318}, Button { enabled, "Heck!" }, 
  229.         /* [2] */     {11, 73, 135, 318}, StaticText { disabled, "^0" }, 
  230.         /* [3] */     {11, 11, 43, 43}, Icon { disabled, 0 },
  231.         /* [4] */     {156, 11, 172, 100}, StaticText { disabled, "^1" } 
  232.     }
  233. };
  234.  
  235.  
  236. /* the status dialog */
  237.  
  238. resource 'DLOG' (210) {
  239.     {40, 40, 136, 390},
  240.     noGrowDocProc, invisible, noGoAway, 0x0, 210, "",
  241.     centerMainScreen
  242. };
  243.  
  244. resource 'DITL' (210) {
  245.     {    /* array DITLarray: 3 elements */
  246.         /* [1] */
  247.         {8, 15, 44, 338},
  248.         StaticText {
  249.             disabled,
  250.             "Stop reading source code and go get some work done."
  251.         },
  252.         /* [2] */
  253.         {53, 14, 87, 70},
  254.         StaticText {
  255.             disabled,
  256.             "Status:"
  257.         },
  258.         /* [3] */
  259.         {53, 75, 87, 338},
  260.         StaticText {
  261.             disabled,
  262.             "idle…"
  263.         }
  264.     }
  265. };
  266.  
  267.  
  268. resource 'DLOG' (205) { /* diagnostic dialog */
  269.     {40, 40, 290, 370},
  270.     dBoxProc, invisible, goAway, 0x0, 205, "", alertPositionMainScreen
  271. };
  272.  
  273.  
  274. resource 'DITL' (205, purgeable) { /* diagnostic dialog */
  275.     {    /* array DITLarray: 5 elements */
  276.         /* [1] */ {223, 247, 243, 319}, Button { enabled, "OK" },
  277.         /* [2] */ {11, 73, 64, 318}, StaticText { disabled, "Drivel." },
  278.         /* [3] */ {11, 9, 43, 41}, Icon { disabled, 0 },
  279.         /* [4] */ {75, 10, 211, 302}, UserItem { disabled },
  280.         /* [5] */ {75, 301, 211, 317}, Control { enabled, 205 }
  281.     }
  282. };
  283.  
  284.  
  285. resource 'CNTL' (205, purgeable) {
  286.     {75, 301, 211, 317}, 0, visible, 0, 0, 16, 0, ""
  287. };
  288.  
  289.  
  290. /* standard file dialog with a prompt */
  291.  
  292. resource 'DLOG' (212, purgeable) {
  293.     {0, 0, 210, 344},
  294.     dBoxProc,
  295.     invisible,
  296.     noGoAway,
  297.     0x0,
  298.     212,
  299.     "",
  300.     noAutoCenter
  301. };
  302.  
  303.  
  304. resource 'DITL' (212, purgeable) {
  305.     {    /* array DITLarray: 10 elements */
  306.         /* [1] */
  307.         {176, 252, 196, 332},
  308.         Button {
  309.             enabled,
  310.             "Open"
  311.         },
  312.         /* [2] */
  313.         {145, 252, 165, 332},
  314.         Button {
  315.             enabled,
  316.             "Cancel"
  317.         },
  318.         /* [3] */
  319.         {0, 0, 0, 0},
  320.         HelpItem {
  321.             disabled,
  322.             HMScanhdlg {
  323.                 -6042
  324.             }
  325.         },
  326.         /* [4] */
  327.         {49, 235, 65, 337},
  328.         UserItem {
  329.             enabled
  330.         },
  331.         /* [5] */
  332.         {73, 252, 93, 332},
  333.         Button {
  334.             enabled,
  335.             "Eject"
  336.         },
  337.         /* [6] */
  338.         {101, 252, 121, 332},
  339.         Button {
  340.             enabled,
  341.             "Desktop"
  342.         },
  343.         /* [7] */
  344.         {70, 12, 200, 230},
  345.         UserItem {
  346.             enabled
  347.         },
  348.         /* [8] */
  349.         {47, 12, 66, 230},
  350.         UserItem {
  351.             enabled
  352.         },
  353.         /* [9] */
  354.         {132, 251, 133, 333},
  355.         Picture {
  356.             disabled,
  357.             11
  358.         },
  359.         /* [10] */
  360.         {5, 12, 40, 336},
  361.         StaticText {
  362.             disabled,
  363.             "^0"
  364.         }
  365.     }
  366. };
  367.  
  368.  
  369. resource 'STR#' (100) {    /* error alert messages! */
  370.     {    /* array StringArray: 1 elements */
  371.         /* [1] */    "This application requires Apple events.  Please upgrade to System 7.0 or later to use.",
  372.         /* [2] */    "An error occured during Apple event processing."
  373.     }
  374. };
  375.  
  376. resource 'STR#' (101) {    /* useful strings */
  377.     {    /* array StringArray: 1 elements */
  378.         /* [1] */    "ProjectDrag Preferences",
  379.         /* [2] */    "User Settings",
  380.         /* [3] */    "what you changed in",
  381.         /* [4] */    "what you expect to do with",
  382.         /* [5] */    "Your name and initials could not be determined.",
  383.         /* [6] */    "Projector information could not be retrieved from “<1>”.",
  384.         /* [7] */    "The project “<1>” could not be found.",
  385.         /* [8] */    "An error occured during the Projector command.",
  386.         /* [9] */    "The Projector command succeeded with this result: ",
  387.         /* [10] */    "idle…",
  388.         /* [11] */    "mounting project “<1>”",
  389.         /* [12] */    "<1>: An applet from ProjectDrag.\nWritten by Tim Maroney.",
  390.         /* [13] */    "A change header could not be found in “<1>”. Do you want to add one?",
  391.         /* [14] */    "Sorry, an error occurred while <1>.\n\n<2>",
  392.         /* [15] */    "first checked in",
  393.         /* [16] */    "searching for SourceServer",
  394.         /* [17] */    "The change comment could not be added to “<1>”.",
  395.         /* [18] */    "Please enter a comment explaining <1> “<2>”.",
  396.         /* [19] */    "Do you really want to discard changes to “<1>”?",
  397.         /* [20] */    "“<1>” isn't checked out or modify-read-only, so it can't be checked in.",
  398.         /* [21] */    "“<1>” is already checked out or modify-read-only, so it can't be checked out.",
  399.         /* [22] */    "“<1>“ is already checked out or modify-read-only, so it can't be made modify-read-only.",
  400.         /* [23] */    "The preferences file could not be written, but we can work with the settings you entered.",
  401.         /* [24] */    "getting your user name and nickname",
  402.         /* [25] */    "adding the change comment to “<1>”",
  403.         /* [26] */    "looking for the project",
  404.         /* [27] */    "Please select a ProjectorDB file with which you wish to work.",
  405.         /* [28] */    "The Projector database could not be found. Please select one…",
  406.         /* [29] */    "The change comment could not be added to “<1>”. Do you want to cancel the modify-read-only mark?",
  407.         /* [30] */    "The change comment could not be added to “<1>”. Do you want to cancel the checkout?",
  408.         /* [31] */    "Folder Names",
  409.         /* [32] */    "“<1>” is not part of the project. Do you want to add it?",
  410.         /* [33] */    "“<1>” isn't checked out or modify-read-only, so it can't be canceled.",
  411.         /* [34] */    "The external checkin of “<1>” failed. Do you want to cancel the checkout of the original?",
  412.         /* [35] */    "“<1>” doesn't appear to be checked out (but it might be). Do you want to try to cancel the checkout anyway?",
  413.         /* [36] */    "Previous Comment",
  414.     }
  415. };
  416.  
  417. data 'Comm' (1) {
  418.     "<comment start>"
  419.     "<line start>\tFile:\t\t<file name><line end>\n"
  420.     "<blank line>\n"
  421.     "<line start>\tContains:\t<contents><line end>\n"
  422.     "<blank line>\n"
  423.     "<line start>\tWritten by:\t<user name><line end>\n"
  424.     "<blank line>\n"
  425.     "<line start>\tCopyright:\t<copyright><line end>\n"
  426.     "<blank line>\n"
  427.     "<line start>\tChange History (most recent first):<line end>\n"
  428.     "<blank line>\n"
  429. };
  430.  
  431. data 'Comm' (2) {
  432.     "<line start>\t\t<<revision>>\t <date>\t<nickname>\t<comment><line end>\n"
  433. };
  434.  
  435. resource 'vers' (1) {
  436.     0x01,    /* major revision */
  437.     0x01,    /* minor revision */
  438.     beta,
  439.     0x08,    /* non-final release version */
  440.     verUS,    /* country code */
  441.     "1.1b8",    /* short vers string */
  442.     "ProjectDrag 1.1b8 by Tim Maroney"
  443. };
  444.  
  445. resource 'SIZE' (-1) {
  446.     reserved,
  447.     acceptSuspendResumeEvents,
  448.     reserved,
  449.     canBackground,
  450.     multiFinderAware,
  451.     backgroundAndForeground,
  452.     dontGetFrontClicks,
  453.     ignoreChildDiedEvents,
  454.     is32BitCompatible,
  455.     isHighLevelEventAware,
  456.     localAndRemoteHLEvents,
  457.     notStationeryAware,
  458.     dontUseTextEditServices,
  459.     reserved,
  460.     reserved,
  461.     reserved,
  462.     102400,
  463.     102400
  464. };
  465.  
  466. resource 'SIZE' (0) {
  467.     reserved,
  468.     acceptSuspendResumeEvents,
  469.     reserved,
  470.     canBackground,
  471.     multiFinderAware,
  472.     backgroundAndForeground,
  473.     dontGetFrontClicks,
  474.     ignoreChildDiedEvents,
  475.     is32BitCompatible,
  476.     isHighLevelEventAware,
  477.     localAndRemoteHLEvents,
  478.     notStationeryAware,
  479.     dontUseTextEditServices,
  480.     reserved,
  481.     reserved,
  482.     reserved,
  483.     102400,
  484.     102400
  485. };
  486.